<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>
	<head>   
		<!-- 这里引入导航信息header.tpl -->
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>新增外部机构信息</title>
		<script type="text/javascript">
			var pagePath = '<%=context%>' +'sys/organization/';
			//默认加载
			$(function(){
				//把访问路径传到js
				setPathPrefix(pagePath);
				window.outOrgAdd = new OUT_ORG_ADD();
			});
		</script>
	</head>
	<body class="sub-page">
		<form id="outOrgAddForm" name="outOrgAddForm" oc="form" class="form-horizontal" method="post" action="">
			<fieldset>
				<div class="page-content">
					<div class="page-header">
						<h4 class="page-title">新增外部机构信息</h4>
					</div>
					<div class="page-body">
		  				<div class="form-group">
							<label class="col-sm-2 control-label">机构简称<span class="text-danger">*</span></label>
							<div class="col-sm-10">
								<input type="text" placeholder="机构简称" class="form-control" name="orgName" id="orgName"/>
							</div>
						</div>
		  				<div class="form-group">
							<label class="col-sm-2 control-label">机构代码<span class="text-danger">*</span></label>
							<div class="col-sm-10">
								<input type="text" placeholder="机构代码" class="form-control" name="orgId" id="orgId"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">机构类型<span class="text-danger">*</span></label>
							<div class="col-sm-10 form-inner">
								<select name="orgType" id="orgType" class="form-control use-select2" >
									<option value="OUT">外部机构</option>
									<option value="IN">内部机构</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">父级机构<span class="text-danger">*</span></label>
							<div class="col-sm-10 form-inner">
								<select name="reOrgId" id="reOrgId" class="form-control use-select2" >
									<option value="0">无</option>
									<c:forEach var="obj" items="${orgTree }">
										<option value="${obj.orgId }">${obj.orgNameTree }</option>
									</c:forEach>
								</select>
							</div>
						</div>
	  				</div>
	  				
					<div class="page-footer">
						<button type="button" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="outOrgAdd.submitForm();">提交</button>
						<button type="button" class="btn btn-link btn-w-xs"	onclick="window.close();">取消</button>
					</div>
				</div>
			</fieldset>
		</form>
		
		<script type="text/javascript" src="<%=context%>resources/modules/system/sys/organization/outOrgAdd.js?r=<%=Math.random()%>"></script>
	</body>
</html>